package com.joker.order.config;

import org.springframework.amqp.core.*;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMQConfig {

    public static final String ORDER_QUEUE = "order_queue_s"; // 订单服务的队列

    @Bean
    public Queue orderQueue() {
        return new Queue(ORDER_QUEUE);
    }

}
